#逆置字符串

def reverse_words(words: str):
    tokens = words.split(' ')
    tokens.reverse()
    return ' '.join(tokens)


print(reverse_words('hello world'))